#ifndef __BIN_H
#define __BIN_H

#include <vector>
#include <opencv2/opencv.hpp>
#include "Palette.h"
#include "color.h"
#include "commondef.h"
using namespace std;
using namespace cv;

class ColorBin
{
public:
	ColorBin();
	void setGroup(int i);
	int getGroup() const;
	void setId(int i,int j,int k);
	vector<int> getId() const;
	void setCenter(ColorLab centor);
	void InsertPoint(int i,int j);
	int getNum() const;
	ColorLab getCenter() const;
	void getCenter_4Byte(float* center) const;
private:
	ColorLab _vcenter;
	int _num;
	vector<int> _id;
	int _group;
};
#endif //__BIN_H
